package ch2;

public class Fuzhi {

	public static void main(String[] args) {
		int a = 23;
		int b = 75;
		b = a;// 变量之间的赋值，复制一份自己给别人
		System.out.println("1: b=" + b);// 23
		a = 14;
		System.out.println("2 :b=" + b);// 14? 23?

		a = 23;
		b = 75;
		a = a + b;// a=98 b=75
		b = a - b;// a=98 b=23
		a = a - b;// a=75 b=23
		System.out.println("a=" + a + ",b=" + b);
		// 两个数的互换，a中的值变成b,b的值是a的原来的值

	}

}
